/**
 * 
 */
package cn.nawang.ebeim.test.transfer;

import java.io.Serializable;

public class FileInfo implements Serializable{

  private static final long serialVersionUID = 1L;
  //对象类型,默认为数据文件
  private byte type = TYPE_FILE_UPLOAD;
  public static final byte TYPE_FILE_UPLOAD = 1;
  public static final byte TYPE_FILE_DOWNLOAD = 2;
  public static final byte TYPE_VERSION_UPLOAD = 3;
  public static final byte TYPE_VERSION_DOWNLOAD = 4;
  //文件签名
  private String signature;
  //数据id
  private String dataId;
  //文件路径
  private String path;
  //版本号
  private String version;
  
  private String nid;
  
  private int tryCount = 0;

  //是否断点续传
  private boolean isBreakPointUpload ;

  public boolean isBreakPointUpload() {
    return isBreakPointUpload;
  }

  public void setBreakPointUpload(boolean isBreakPointUpload) {
    this.isBreakPointUpload = isBreakPointUpload;
  }

  public FileInfo(String dataId, String signature, byte type) {
    this.signature = signature;
    this.dataId = dataId;
    this.type = type;
  }

  public FileInfo() {
  }
  
  
  public int getTryCount() {
    return tryCount;
}

public void setTryCount(int tryCount) {
    this.tryCount = tryCount;
}

public String getNid() {
    return nid;
  }

  public void setNid(String nid) {
    this.nid = nid;
  }

  public FileInfo(String dataId, String signature, String path, byte type) {
    this.signature = signature;
    this.dataId = dataId;
    this.path = path;
    this.type = type;
  }
  
  public String getVersion() {
    return version;
  }

  public void setVersion(String version) {
    this.version = version;
  }

  public byte getType() {
    return type;
  }

  public void setType(byte type) {
    this.type = type;
  }

  public String getPath() {
    return path;
  }

  public void setPath(String path) {
    this.path = path;
  }

  public String getSignature() {
    return signature;
  }

  public void setSignature(String signature) {
    this.signature = signature;
  }

  public String getDataId() {
    return dataId;
  }

  public void setDataId(String dataId) {
    this.dataId = dataId;
  }

}
